package team.bluepen.supermarket.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConstructorBinding;

/**
 * @author RollW
 */
@ConfigurationProperties(prefix = "spark")
public class SparkProperties {
    private final String master;
    private final String hadoopHome;

    @ConstructorBinding
    public SparkProperties(String master, String hadoopHome) {
        this.master = master;
        this.hadoopHome = hadoopHome;
    }

    public String getMaster() {
        return master;
    }

    public String getHadoopHome() {
        return hadoopHome;
    }
}
